<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
</head>
<body>
    <ul>
        <!--注释-->
        <li>项目1</li>
        <li>项目2</li>
        <li>项目3</li>
        <li>项目4</li>
        <li>项目5</li>
        <li>项目6</li>
    </ul>
</body>
<script>
    var ul=document.querySelector('ul')
   // console.log(ul.childNodes);
    console.log(ul.children);
</script>
</html>